﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using XiaoMan.BLL;
using XiaoMan.Model.Models;
using XiaoMan.Service;

namespace XiaoMan.API.Controllers
{
    [RoutePrefix("api/sysgift")]
    public class SysGiftController : ApiBaseController
    {
        Sys_GiftService sgs = new Sys_GiftService();

        /// <summary>
        /// 查询所有礼物
        /// </summary>
        /// <returns></returns>
        [Route("getsysgift")]
        [HttpGet]
        public IHttpActionResult getSysGift()
        {
            List<Sys_Gift> giftInfoList = sgs.GetList();
            return ApiSuccess(giftInfoList);
        }
    }
}